<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/sks/cms/page/share/taglib.jsp" %>
<html>
<head>
<title>外部用户显示</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<script language="JavaScript">
//到指定的分页页面
function topage(page){
	var form = document.forms[0];
	form.page.value = page;
	form.submit();
}
function selectUser(userId, userName) {
	var tmpValue = new Array(userId, userName);
	window.returnValue = tmpValue;
	window.close();
}
</script>
</head>
<body bgcolor="#FFFFFF" text="#000000" marginwidth="0" marginheight="0">
<html:form action="/cms/privilege/users/list" method="post">
<html:hidden property="query" value="true"/>
<html:hidden property="page"/>
  <table width="98%" border="0" cellspacing="1" cellpadding="2" align="center">
    <tr><td colspan="3" bgcolor="#ffbe26" align="right">
    	<%@ include file="/WEB-INF/page/share/fenye.jsp" %>
    </td></tr>
    <tr>
      <td width="50%" bgcolor="#ffbe26"><div align="center"><font color="#000000">用户名</font></div></td>
      <td width="50%" bgcolor="#ffbe26"><div align="center"><font color="#000000">状态</font></div></td>
    </tr>
<!---------------------------LOOP START------------------------------>
<c:forEach items="${pageView.records}" var="entry">
    <tr>
	  <td bgcolor="f5f5f5"> <div align="center"><a href="javascript:selectUser(${entry.userId}, '${entry.userName}');">${entry.userName}</a></div></td>
      <td bgcolor="f5f5f5"> <div align="center"><c:if test="${entry.status}">可用</c:if><c:if test="${!entry.status}">禁用</c:if></div></td>
	</tr>
</c:forEach>
  </table>
</html:form>
</body>
</html>